﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace eStock.Common
{
    public class Globals : INotifyPropertyChanged
    {
        private bool _dbLoaded { get; set; }
        public bool DBLoaded { 
            get { return _dbLoaded; } 
            set { _dbLoaded = value;
                if (PropertyChanged != null)
                    PropertyChanged(this, new PropertyChangedEventArgs("DBLoaded"));
                }
        }


        private static readonly Globals _instance = new Globals();
        public static Globals Instance { get { return _instance; } }
        private Globals() { }

        public event PropertyChangedEventHandler PropertyChanged;
    }
}
